package com.atguigu.yygh.orders.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2021-12-19
 */
public interface OrderInfoService extends IService<OrderInfo> {

    //排班id+就诊人id
    Long creatOrder(String scheduleId, Long patientId);

    //订单列表 分页+条件查询
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    //获取订单详情
    OrderInfo getOrderInfo(Long orderId);

    //根据订单号取消预约
    Boolean cancelOrder(Long orderId);


    /**
     * 就诊提醒
     */
    void patientTips(String dateString);

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
